﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hiflo
{
    internal class LanguageMngr
    {
        public static int m_lang = 0;

        static public string file()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "file";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "文件";
            }
            return str;
        }


        static public string others()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "others";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "其他";
            }
            return str;
        }

        static public string sdCard_path()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "SD card path";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "SD卡路径";
            }
            return str;
        }

        static public string open()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "open";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "打开";
            }
            return str;
        }

        static public string filter()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "filter";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "过滤";
            }
            return str;
        }

        static public string data()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "data";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "数据";
            }
            return str;
        }

        static public string alarm()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "alarm";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "报警";
            }
            return str;
        }

        static public string save_data()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "save data";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "数据保存";
            }
            return str;
        }

        static public string language()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "language";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "语言";
            }
            return str;
        }

        static public string Chinese()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Chinese";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "中文";
            }
            return str;
        }

        static public string English()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "English";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "英文";
            }
            return str;
        }

        static public string software_version()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Software Version";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "软件版本";
            }
            return str;
        }


        static public string date_time()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Date Time";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "日期";
            }
            return str;
        }

        static public string flow()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Flow(LPM)";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "流量(LPM)";
            }
            return str;
        }

        static public string temperature()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Temp.(℃)";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "温度(℃)";
            }
            return str;
        }

        static public string O2_Percent()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2%";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度(%)";
            }
            return str;
        }

        static public string O2HighLimit_Percent()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2 High Limit(%)";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度上限(%)";
            }
            return str;
        }

        static public string O2LowLimit_Percent()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2 Low Limit(%)";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度下限(%)";
            }
            return str;
        }

        static public string mode()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Mode";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "模式";
            }
            return str;
        }

        static public string high_flow_mode()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "High Flow Mode";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "高流量模式";
            }
            return str;
        }

        static public string low_flow_mode()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Low Flow Mode";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "低流量模式";
            }
            return str;
        }

        static public string value()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Value";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "数值";
            }
            return str;
        }

        static public string system_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "system error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "系统错误";
            }
            return str;
        }

        static public string o2_too_high()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2% too high";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度过高";
            }
            return str;
        }

        static public string o2_too_low()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2% too low";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度过低";
            }
            return str;
        }

        static public string leakage()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Air leak";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "漏气";
            }
            return str;
        }

        static public string block()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Block";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "堵塞";
            }
            return str;
        }

        static public string over_temp()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "over temperature";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "超温";
            }
            return str;
        }

        static public string heatwire_break()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "heating wire break";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "发热线脱落";
            }
            return str;
        }

        static public string lack_of_water()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "lack of water";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "缺水";
            }
            return str;
        }

        static public string cant_reach_target_temp()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "can't reach target temp.";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "温度达不到";
            }
            return str;
        }

        static public string flow_out_of_range()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "flow out of range";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "流量超范围";
            }
            return str;
        }

        static public string ambient_temp_out_of_range()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "ambient temp. out of range";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "环境温度超范围";
            }
            return str;
        }

        static public string o2_sensor_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2 sensor error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度传感器故障";
            }
            return str;
        }

        static public string flow_sensor_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "flow sensor error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "流量传感器故障";
            }
            return str;
        }

        static public string pressure_sensor_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "pressure sensor error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "压力传感器故障";
            }
            return str;
        }

        static public string heatplate_NTC_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "heat plate NTC error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "发热盘NTC故障";
            }
            return str;
        }

        static public string heatplate_drop_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "heat plate drop";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "发热盘未连接";
            }
            return str;
        }

        static public string blender_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "blender error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "空氧板故障";
            }
            return str;
        }

        static public string power_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "power error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "电源故障(5V/24V)";
            }
            return str;
        }

        static public string zero_corss_error()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "zero cross error";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "过零检测故障";
            }
            return str;
        }

        static public string no_work_data_found()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "No work data found";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "未发现工作数据";
            }
            return str;
        }
        
        static public string no_alarm_data_found()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "No alarm data found";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "未发现报警数据";
            }
            return str;
        }

        static public string no_data_found_pls_import_sdCard()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "No data found,please import SD Card first";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "未发现数据，请先导入SD卡";
            }
            return str;
        }

        static public string o2_concentrate()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2%";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度";
            }
            return str;
        }

        static public string o2_concentrate_range()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "O2% range";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "氧浓度范围";
            }
            return str;
        }

        static public string data_save_successful()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "data save successful";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "数据保存成功";
            }
            return str;
        }

        static public string no_data()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "no data";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "无数据";
            }
            return str;
        }

        static public string about()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "About";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "关于";
            }
            return str;
        }

        static public string pls_re_choose_datetime()
        {
            string str = "";
            if (m_lang == Form1.LANG_EN)
            {
                str = "Please re-choose date time";
            }
            else if (m_lang == Form1.LANG_CH)
            {
                str = "请重新选择时间";
            }
            return str;
        }
    }
}
